<%--
  Created by IntelliJ IDEA.
  User: xubenhao
  Date: 2020/7/26
  Time: 2:01 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="search-container" id="_j_index_search">
    <div class="search-group">
        <!-- 全部 begin -->
        <div class="searchbar" id="_j_index_search_bar_all">
            <div class="search-wrapper">
                <div class="search-input">
                    <input id="globle_search_input" name="search" type="text" placeholder="搜标题/作者/旅游地/编号" id="_j_index_search_input_all" autocomplete="off">
                </div>
            </div>
            <div class="search-button" id="_j_index_search_btn_all">
                <a onclick="globleSearchInput()"><i class="icon-search"></i></a>
            </div>
        </div>
    </div>
</div>
<script>
    function globleSearchInput() {
        var search = $("#globle_search_input").val();
        console.log(search);
        window.location.href='${ctxFront}/search?search=' + search;
    }
</script>